package student_system.bean;

public class student {
    private int sno;
    private  String sname;
    private  String sex;
    private String birthday;
    private String dno;
    public student(){}

    public student(int sno, String sname, String sex, String birthday, String dno) {
        this.sno = sno;
        this.sname = sname;
        this.sex = sex;
        this.birthday = birthday;
        this.dno = dno;
    }

    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getDno() {
        return dno;
    }

    public void setDno(String dno) {
        this.dno = dno;
    }

    @Override
    public String toString() {
        return "\nstudent{" +
                "sno=" + sno +
                ", sname='" + sname + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                ", dno='" + dno + '\'' +
                '}';
    }
}
